﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Collections;

namespace hdomextweb.Controllers
{
    public class HomeController : AsyncController
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Test()
        {
            return View();
        }
        public void TestLoadAsync()
        {
            AsyncManager.OutstandingOperations.Increment();
            var d = new ArrayList();
            //var i = 0;
            d.Add("ddddd");
            d.Add("bbbbb");
            // Terminate operations
            AsyncManager.Parameters["data"] = d;
            AsyncManager.OutstandingOperations.Decrement();
            //return "string";
        }
        public string TestLoadCompleted(ArrayList data)
        {
            return "ddddd";
        }

        public string myHome()
        {
            return "[[1, 'wubiyu1'], [2, 'wubiyu2'], [3, 'wubiyu3']]";
        }

    }
}
